const gulp = require('gulp');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');


gulp.task('js', function() {
  // gulp.src 那些文件，可以是字符串或数组
  return gulp.src(["./js/index.js","./js/jquery-2.0.3.js,","./js/login.js","js/sigin.js"])
    // 管道
    .pipe(concat('game.js'))
    //dest  destination 目的地
    .pipe(gulp.dest('./'))
    .pipe(uglify())
    .pipe(gulp.dest('dist/'))
})